package com.hc.transactional.controller;

import com.hc.transactional.service.TransactionalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: huangcheng
 * @CreateTime: 2023-09-13  13:01
 * @Description:
 * @Version: 1.0
 */
@RestController
public class TransactionalController {
    @Autowired
    TransactionalService transactionalService;

    @GetMapping("/testTransactional")
    public String testTransactional(){
        transactionalService.testTransactional();
        return "testTransactional";
    }
}
